<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>APP参数管理</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        $(document).ready(function () {

        });
        function page(n, s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/version/appParam/">APP参数列表</a></li>
    <%--<li><a href="${ctx}/version/appParam/form">APP参数添加</a></li>--%>
</ul>
<form:form id="searchForm" modelAttribute="appParam" action="${ctx}/version/appParam/" method="post"
           class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
    <ul class="ul-form">
            <%--<li><label>机构：</label>
                <form:select path="appVersion" class="input-medium">
                    <form:option value="" label=""/>
                    <form:options items="${fns:getIsOrNoList()}" itemLabel="label" itemValue="value" htmlEscape="false"/>
                </form:select>
            </li>--%>
        <li><label>备注消息：</label>
            <form:input path="remark" htmlEscape="false" maxlength="255" class="input-medium"/>
        </li>
        <li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
        <li class="clearfix"></li>
    </ul>
</form:form>
<sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
    <tr>
        <th>id</th>
        <th>版本描述</th>
        <th>所属APP</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${page.list}" var="appParam">
        <tr>
            <td><a href="${ctx}/version/appParam/form?id=${appParam.id}">
                    ${appParam.id}
            </a></td>
            <td>
                    ${fns:getVersionLabel(appParam.appVersion, "")}
            </td>
            <td>
                    ${appParam.remark}
            </td>
            <td>
                <a href="${ctx}/version/appParam/form?id=${appParam.id}">修改</a>
                <a href="${ctx}/version/appParam/delete?id=${appParam.id}"
                   onclick="return confirmx('确认要删除该APP参数吗？', this.href)">删除</a>
            </td>
        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>